package com.qf.fengmimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.fengmimall.ex.UserException;
import com.qf.fengmimall.product.entity.ShoppingCart;
import com.qf.fengmimall.vo.ShopCartVo;
import com.qf.fengmimall.vo.ShoppingCartVo;

import java.util.List;

/**
 * <p>
 * 购物车  服务类
 * </p>
 *
 * @author lx
 * @since 2023-02-16
 */
public interface IShoppingCartService extends IService<ShoppingCart> {

    void insertShoppingCart(ShopCartVo shopCartVo) throws UserException;

    List<ShoppingCartVo> shoppingCartList(String userId);

    void updateShoppCart(Integer id, String num);

    List<ShoppingCartVo> listByCids(String cids);

}
